home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14337 < prev    next >
Encoding:
Text File  |  1996-08-05  |  900 b   |  25 lines

  1. Newsgroups: comp.lang.c
  2. Path: netcom.com!smryan
  3. From: smryan@netcom.com (@#$%!?!)
  4. Subject: Re: locking datafile
  5. Message-ID: <smryanDps7sy.73x@netcom.com>
  6. Organization: The Programmer formerly known as S M Ryan
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <4kmmrd$hma@usc.edu>
  9. Date: Sat, 13 Apr 1996 03:46:10 GMT
  10. Sender: smryan@netcom2.netcom.com
  11.  
  12. :      Is there a mechanism in c for locking a file so that
  13. : updating the file won't affect or allow other user to read
  14. : files until the updating is done!?!
  15.  
  16. No.
  17.  
  18. There are mechanisms in some operating systems. For unix, you
  19. can try fcntl(2).
  20. -- 
  21. The Queen, amused, in quiet power,         | smryan@netcom.com  PO Box 1563
  22. will draw the son to darkenned bower.      |          Cupertino, California
  23. Her face is fair, her fragrance rare,      | (xxx)xxx-xxxx            95015
  24. with woven webs for wayward flower.        |         I don't use no smileys
  25.